<div class="container-fluid">
  <%= form_for @truck, :html => { :class => 'form-horizontal' } do |f| %>
  <legend><%= controller.action_name.capitalize %> truck</legend>
  <div class="row-fluid">
    <div class="span12">
      <% if @truck.errors.any? %>
      <div class="row-fluid">
        <div class="span12 bgcolor">
          <div class="alert alert-error">
            <a href="#" class="close" data-dismiss="alert">×</a>
              <%= pluralize(@truck.errors.count, "error") %> prohibited this truck from being saved:
              <% @truck.errors.full_messages.each do |msg| %>
                <%= msg %>
              <% end %>
          </div>
        </div>
      </div>
      <% end %>
      <div class="row-fluid">
        <div class="span6">
          <label>Name</label>
          <%= f.text_field :name, :class => 'span12' %>
        </div>
        <div class="span6">
          <label>Truck identifier</label>
          <%= f.text_field :truck_no, :class => 'span12' %>
        </div>
      </div>                      
    </div>
  </div>
  <div class="form-actions">
    <%= f.submit nil, :class => 'btn btn-primary' %>
    <%= link_to 'Cancel', trucks_path, :class => 'btn' %>
  </div>
  <!--/row-->
  <% end %>
</div>
<!--/.fluid-container-->
